//
//  AppWindow.m
//  HSTS
//
//  Created by simon on 2017/1/23.
//  Copyright © 2017年 simon. All rights reserved.
//

#import "AppWindow.h"
#import "AppDelegate.h"
#import "HSStartGifViewController.h"
@implementation AppWindow

+ (instancetype)appWindow
{
    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    AppWindow *window = appDelegate.window;
    
    return window;
}

- (void)makeKeyAndVisible{
    [super makeKeyAndVisible];
    _gifCtl = [[HSStartGifViewController alloc]initWithNibName:@"HSStartGifViewController" bundle:nil];
    _gifCtl.view.frame = [[UIScreen mainScreen] bounds];
    [self addSubview:_gifCtl.view];
    _gifCtl.view.hidden = YES;
    
}

-(void)showGifImg{
    _gifCtl.view.hidden = NO;
}

-(void)hiddenGifImg{
    _gifCtl.view.hidden = YES;
}
@end
